package com.pengpeng.nacos.feign.service;

import com.pengpeng.nacos.feign.service.fallback.ProviderFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 彭鹏
 * @date 2021/10/28.
 */
@FeignClient(name = "demo-provider",fallback = ProviderFeignServiceFallback.class)
public interface IProviderFeignService {

    @GetMapping("/echo")
    String echo(@RequestParam("name") String name);

}
